package com.example.rentalcar.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 合同信息对象 protocol
 * 
 * @author ruoyi
 * @date 2024-01-03
 */
@TableName("protocol")
public class Protocol
{

    /** 合同id */
    private Long corId;

    /** 用户id */

    private Long userId;

    /** 车辆id */

    private Long carId;

    /** 保单id */

    private Long insureId;

    /** 保险费 */

    private Long insureFee;

    /** 租赁时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")

    private Date startTime;

    /** 归还时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")

    private Date endTime;

    public void setCorId(Long corId) 
    {
        this.corId = corId;
    }

    public Long getCorId() 
    {
        return corId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setInsureId(Long insureId) 
    {
        this.insureId = insureId;
    }

    public Long getInsureId() 
    {
        return insureId;
    }
    public void setInsureFee(Long insureFee) 
    {
        this.insureFee = insureFee;
    }

    public Long getInsureFee() 
    {
        return insureFee;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return "Protocol{" +
                "corId=" + corId +
                ", userId=" + userId +
                ", carId=" + carId +
                ", insureId=" + insureId +
                ", insureFee=" + insureFee +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                '}';
    }

    public Protocol() {
    }
}
